Assignment 4
Assignment 4
Basic instructions:
1. Check every line of your program for semicolon (;)
2. Check printf for format specifier %d for integer numbers
3. Check scanf for %d and & sign before variable name
int main(){
int a,b;
scanf("%d,%d",&a,&b);
printf("%d",a-b);
return 0;
}
#include<stdio.h>
#include<math.h>
int main(){
int a;
printf("enter height in feet");
scanf("%d",&a);
printf("%d inches",a*12);
return 0;
}