Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- double i, j, nj;
- for(i=0; i<=2.0; i+=0.2){
- for(j=1.0; j<=3.0; j++){
- nj=j+i;
- if(nj == 1.0 || nj == 2.0 || nj == 3.0 || nj == 4.0 || nj == 5.0){
- printf("I=%.0lf J=%.0lf\n", i, nj);
- }
- else{
- printf("I=%.1lf J=%.1lf\n", i, nj);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment