Professional Documents
Culture Documents
MATRIC ID : C-201234
Solution :
#include<stdio.h>
int main()
char x[6];
char en[6];
scanf("%s",x);
en[5] = '\0';
printf("\nThe original word is '%s' \n and the encoded word is '%s' .\n ",x,en);
return 0;
}
Problem no. 02 : Write a C program to reverse a word’s uppercase into
lowercase and vice-versa.
Solution :
#include <stdio.h>
int main() {
char s[100];
int i;
scanf("%s",s);
}
printf("\nThe converted word is = %s",s);
return 0;
Solution :
#include<stdio.h>
int main()
int unit,minimum_charge;
sur_charge = 0.15;
minimum_charge = 120;
scanf("%d", &unit);
if(unit <= 150)
else
if(net_amt>10000)
{
total_amt = net_amt + (net_amt * sur_charge);
else
total_amt = net_amt;
return 0;